package robocode.editor;

import javax.swing.*;
import java.awt.*;

/**
 * Created by Claudiu-Florin FILIMON
 * Date: Aug 4, 2007
 * Time: 5:03:52 PM
 * Revision: 0
 */
public class FiliTest extends JFrame
{
        private JEditorPane editorPane;
    private RobocodeEditorKit editorKit;

    public FiliTest()
    {
        editorPane = new JEditorPane();
        editorPane.setFont(new Font("Monospaced",Font.PLAIN, 12));
        editorKit = new RobocodeEditorKit();

        editorPane.setContentType(editorKit.getContentType());
        editorPane.setEditorKitForContentType(editorKit.getContentType(), editorKit);
        editorPane.setContentType(editorKit.getContentType());

//        editorPane.setCaret(new WideCaret());

        setSize(640,480);
        getContentPane().setLayout(new BorderLayout());

        getContentPane().add(editorPane, BorderLayout.CENTER);

        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setVisible(true);
    }


    public static void main(String[] args)
    {
        new FiliTest();
    }
}
